Skip to content

Comments

Add market-intelligence community ability (v2)#103

Closed
bishop-commits wants to merge 9 commits intoopenhome-dev:devfrom
bishop-commits:add-market-intelligence-v2
Closed

Add market-intelligence community ability (v2)#103
bishop-commits wants to merge 9 commits intoopenhome-dev:devfrom
bishop-commits:add-market-intelligence-v2

Conversation

@bishop-commits
Copy link

Market Intelligence Ability

Voice-first prediction market + crypto price assistant using Polymarket Gamma API and CoinGecko.

What it does

  • Natural language queries about prediction markets, geopolitical events, crypto prices, macro trends
  • Multi-turn conversation with automatic query classification (geopolitics, crypto, macro, technology, corporate)
  • No API keys required — both data sources have free, unauthenticated endpoints

Changes from PR #97

  • Replaced urllib with requests per sandbox security policy (feedback from @codermohsin)
  • Cleaned up imports and error handling

Example

User: "What's the market saying about Iran?"
AI:   "US airstrike on Iran by March 31st: 60% chance of Yes..."

User: "How's Bitcoin doing?"  
AI:   "Bitcoin is trading at $67,490, up 1.2% in the last 24 hours."

Files

  • community/market-intelligence/main.py — The ability
  • community/market-intelligence/README.md — Documentation
  • community/market-intelligence/__init__.py — Required empty init

Closes feedback from #97.

Voice-first prediction market + crypto price assistant using
Polymarket Gamma API and CoinGecko. Supports multi-turn conversation
with automatic query classification across geopolitics, crypto, macro,
technology, and corporate categories.

Fixes openhome-dev#97 feedback: replaced urllib with requests.
@bishop-commits bishop-commits requested a review from a team as a code owner February 20, 2026 20:07
@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🔀 Branch Merge Check

PR direction: add-market-intelligence-v2dev

Passedadd-market-intelligence-v2dev is a valid merge direction

@github-actions github-actions bot added community-ability Community-contributed ability first-contribution First-time contributor labels Feb 20, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

✅ Ability Validation Passed

📋 Validating: community/market-intelligence
  ✅ All checks passed!

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2026

🔍 Lint Results

__init__.py — Empty as expected

Files linted: community/market-intelligence/main.py

✅ Flake8 — Passed

✅ All checks passed!

@Rizwan-095
Copy link
Contributor

Kindly look at the validate_ability.py file in root directory of this repo again there are few changes so build your ability according to that. Also check out template again their are changes in register_capability function.
Also look at these docs.
https://docs.openhome.com/how_to_build_an_ability

- Add config.json with unique_name and matching_hotwords
- Refactor register_capability() to load config.json per SDK boilerplate
- Convert call() to async pattern using CapabilityWorker
- Add resume_normal_flow() at all exit points
- Remove worker parameter threading (use self.worker)

Fixes validation failures on PR openhome-dev#103
@bishop-commits bishop-commits requested a review from a team as a code owner February 22, 2026 17:43
@bishop-commits
Copy link
Author

@Rizwan-095 Thanks for the heads-up. I've updated the ability to align with the latest validation and template changes:

  • Replaced raw open() with CapabilityWorker helpers
  • Added the register capability tag
  • Aligned class structure with the new template
  • All automated checks are now passing

Ready for review!

@codermohsin
Copy link
Contributor

Your ability is under review.

Our team will get back to you and give feedback.

Thanks

@github-actions
Copy link
Contributor

github-actions bot commented Feb 24, 2026

🚫 Community PR Path Check — Failed

Community PRs can only modify files inside the community/ folder.

❌ Not Allowed

  • validation_output.txt

✅ Allowed

  • community/market-intelligence/README.md
  • community/market-intelligence/__init__.py
  • community/market-intelligence/config.json
  • community/market-intelligence/main.py

Please remove changes to files outside community/.
If you need changes elsewhere, open an issue to discuss with maintainers.

@abubakar4360
Copy link
Contributor

Please resolve the issues and resubmit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-ability Community-contributed ability first-contribution First-time contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants